package com.zhang.webadmin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @TableName acl_permission
 */
@TableName(value = "acl_permission")
@Data
public class AclPermission implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    private Long parentId;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String code;

    /**
     *
     */
    private String type;

    /**
     *
     */
    private String icon;

    /**
     *
     */
    private String component;
    
    private String path;

    /**
     *
     */
    private Integer orderNum;

    /**
     *
     */
    @JsonIgnore
    private LocalDateTime createTime;

    /**
     *
     */
    @JsonIgnore
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<AclPermission> children;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}